package com.lds.management.center.common.util;


import com.lds.management.center.common.enums.ErrCodeEnum;
import com.lds.management.center.common.exception.BusinessException;

public class AssertUtil {
    public static void assertTrue(boolean condition, ErrCodeEnum errCodeEnum) {
        if (!condition) {
            throw new BusinessException(errCodeEnum);
        }
    }

}
